package com.asiainfo.vo;

/**
 * Created by Administrator on 2017/9/1.
 */
public class Event {
  private int eventId;
  private String eventName;

  public int getEventId() {
    return eventId;
  }

  public void setEventId(int eventId) {
    this.eventId = eventId;
  }

  public String getEventName() {
    return eventName;
  }

  public void setEventName(String eventName) {
    this.eventName = eventName;
  }

  @Override
  public String toString() {
    return "eventId="+eventId+"eventName='"+eventName+"\'";
  }

  @Override
  public boolean equals(Object obj) {
    if(obj==this){
      return true;
    }
    if(obj==null||getClass()!=obj.getClass()){
      return false;
    }
    Event event = (Event) obj;
    if(eventId!=event.eventId){
      return false;
    }
    return eventName.equals(event.eventName);
  }
}
